package com.pig4cloud.pig.demo.feign.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 购买评论订单实体类
 * Created by caoxuel on 2020/10/17 15:38
 * @author caoxuel
 */
@Data
@TableName("buy_comment")
public class BuyComment {

    /**
     * 评论主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 评论的详细内容
     */
    private String content;

    /**
     * 满意度
     */
    private String value;

    /**
     * 评论的发布时间
     */
    @TableField(value = "publish_time")
    private Date publishTime;

    /**
     * 文章id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long aid;

    /**
     * 用户id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long cid;

}
